<?php 
/*
 module:		结果详情验证器
 create_time:	2021-09-02 22:28:17
 author:		
 contact:		
*/

namespace app\admin\validate\Resultre;
use think\validate;

class Details extends validate {


	protected $rule = [
		'fraction_start'=>['regex'=>'/^[0-9]*$/'],
		'fraction_end'=>['regex'=>'/^[0-9]*$/'],
		'title'=>['require'],
	];

	protected $message = [
		'fraction_start.regex'=>'分数开始格式错误',
		'fraction_end.regex'=>'分数结束格式错误',
		'title.require'=>'标题不能为空',
	];

	protected $scene  = [
		'add'=>['fraction_start','fraction_end','title'],
		'edit'=>['fraction_start','fraction_end','title'],
	];



}

